package com.itheima.HomeWork.homework04;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;

public class Demo {
    public static void main(String[] args) {
        HashMap<String, Integer> map = new HashMap<>();
        map.put("柳岩", 2100);
        map.put("张亮", 1700);
        map.put("诸葛亮", 1800);
        map.put("灭绝师太", 2600);
        map.put("东方不败", 3800);
        map.put("柳岩", 2400);
        Set<String> strings = map.keySet();
        Iterator<String> it = strings.iterator();
        while (it.hasNext()) {
            String next = it.next();
            Integer i = map.get(next);
            System.out.println(next + ":" + i);

        }

    }
}
